package RegexDemo;

/**
 * @author wuhan
 * @date 2019/11/3 17:51
 */
public class validateQQ {
    private static void checkQQ(){
        String regex = "(.)\\1";
        String s = "erkktyqquizzo";
        String[] split = s.split(regex);
        for (String s1 : split) {
            System.out.println(s1);
        }

//        String qq = "018823a45";
//        String regex = "[1-9][0-9]{4,14}";
//        String TelRegex = "[1-9]\\d{0,14}";
//        String tel = "0905284451";
//        System.out.println(tel.matches(TelRegex));
//        boolean b = qq.matches(regex);
//        if (b){
//            System.out.println("ok");
//        }else {
//            System.out.println("no!");
//        }
    }

    public static void main(String[] args) {
        checkQQ();
    }

}

